package com.lkhd.common.myemum;

/**
 * 用户枚举
 * 
 * @author youjie
 * @date 2018-9-14 10:09:02
 * 
 */
public enum UserEnum {
	
	FREEZE(-1,"拉黑"),
	NORMAL_USER(0,"正常用户"),
	ADMIN(1,"管理员"),
	VOLUNTEER(2,"志愿者"),
	
	NOLOGIN(1000,"用户未登录"),
	USERNAMEORPASWWORDFAIL(1001,"用户名或密码错误"),
	PARAMSFAIL(1002,"参数错误"),
	NOTUSER(1003,"找不到用户"),
	;
	
	/*
	 * code 状态值
	 */
	private Integer code;
	/*
	 * 状态说明
	 */
	private String message;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	private UserEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

}
